﻿<html>
<head>
	<meta http-equiv="Content-Type" content="text/xml; charset=UTF-8">
</head>

<body>
	<br/><strong>回答：</strong><br/><br/>
		<?php  if ($list_answer_isbest != false) { 
		 foreach($list_answer_isbest as $row1): 
		  echo '<h3>采纳的答案</h3>'; ?>
			<?=$row1->content ?><br>
			<div align = right><?=$row1->name ?>&nbsp;&nbsp;<?=$row1->apostdate ?></div>
			<hr>
			<br><br>
		<? endforeach; }?>
		
		<?php  
			foreach($list_answer_unbest as $row2): ?>
			<?=$row2->acontent ?><br>
			<div align = right><?=$row2->name ?>&nbsp;&nbsp;<?=$row2->apostdate ?>
				<a href="/CodeIgniter/questions/receiveAsBest/<?=$row2->aid ?>"><?php if($row2->qsolved == 0 && $this->session->userdata('uid')==$row2->quid) echo '采纳为答案';?></a></div>
			<hr>
			<br><br>
		<? endforeach; ?> 
</body>
</html>